package com.twu.biblioteca;

public class ListState implements State {

    String menuLabel = "List Books";
    public State[] menuStates = new State[] {MainState.getInstance(), ExitState.getInstance(), ReserveState.getInstance()};

    public static State getInstance(){
        if (instance == null){
            instance = new ListState();
        }

        return instance;
    }

    private static ListState instance;

    private ListState() {

    }

    @Override
    public String getMenuLabel() {
        return menuLabel;
    }

    @Override
    public void setMenuLabel(String label) {
        menuLabel = label;
    }

    @Override
    public String[] getOptions() {
        String[] menuOptions = new String[menuStates.length];
        return menuOptions;
    }

    @Override
    public State[] getMenuStates() {
        return new State[0];  //TODO: states
    }

    @Override
    public State reactToInput(int input) {
        return null;
    }
}
